import { INIT_CITY, CHANGE_CITY } from '../constants'
const defaultState = {
    cityName: '北京'
}
export default function city(state = defaultState, actions) {
    switch (actions.type) {
        case INIT_CITY:
            return {
                cityName: actions.cityName
            };
        case CHANGE_CITY:
            return {
                cityName: actions.cityName
            };
        default:
            return state;
    }
}